#!/bin/bash
set -e

cd $(dirname $0)/..

if ! command -v golangci-lint; then	echo Running: go fmt
    echo Skipping validation: no golangci-lint available	test -z "$(go fmt ./... | tee /dev/stderr)"
    exit
fi

echo Running: golangci-lint
golangci-lint run